import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router';
import {routes} from './routes/router';
import iView from 'iview';
import VueQuillEditor from 'vue-quill-editor';
import axios from 'axios';
import VueAxios from 'vue-axios';

import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
import 'iview/dist/styles/iview.css';
import store from './store';
Vue.use(VueRouter);
Vue.use(iView);
Vue.use(VueAxios, axios)
Vue.use(VueQuillEditor)


const router = new VueRouter({
	routes:routes, // 可以直接写成routes
	mode:'history'
});

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
